package com.yb.chapter1;

/**
 * 宠物类
 * @author yb
 * @date 2022/2/11 15:24
 */
public class Pet {

    private String type;
    private String msg;

    public Pet() { }

    public Pet(String type,String msg) {
        this.type = type;
        this.msg = msg;
    }

    public String getType() {
        return type;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public String toString() {
        return msg;
    }
}
